<template>
  <ul class="locationR clearFix fr">
    <li class="fl"><router-link to="/">首页</router-link></li>
    <li class="back fr" @click="back()">返回</li>
  </ul>
</template>
<script>
export default {
name: "Back",
  data(){
    return{}
  },
  mounted() {

  },
  methods:{
    back(){
      this.$router.go(-1);//返回上一层
    }
  }
}
</script>

<style scoped>

</style>
